#ifndef MAINWINDOW_H
#define MAINWINDOW_H

#include <QMainWindow>
#include"caldata.h"
QT_BEGIN_NAMESPACE
namespace Ui { class MainWindow; }
QT_END_NAMESPACE

class MainWindow : public QMainWindow
{
    Q_OBJECT

public:
    MainWindow(QWidget *parent = nullptr);
    ~MainWindow();

private:
    void brushScreen();//刷新屏幕
    void showReult();//显示结果

private slots:
    void on_Btn0_released();

    void on_Btn00_released();

    void on_Btn1_released();

    void on_Btn2_released();

    void on_Btn3_released();

    void on_Btn4_released();

    void on_Btn5_released();

    void on_Btn6_released();

    void on_Btn7_released();

    void on_Btn8_released();

    void on_Btn9_released();

    void on_BtnAdd_released();

    void on_BtnSubstraction_released();

    void on_BtnMultiplication_released();

    void on_BtnDivision_released();

    void on_BtnClearAll_released();

    void on_BtnEqual_released();

    void on_BtnClear_released();

    void on_leftBucket_released();

    void on_rightBucket_released();

    void on_helpPush_released();

private:
    Ui::MainWindow *ui;
    QString inputString;
    void calculator1();
    string inputString2Calinput();
    QString outputString ="0";
};
#endif // MAINWINDOW_H
